﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Battle.Net;
using Battle.Net.Model;
using NUnit.Framework;

namespace Aesha.wow.Api.Tests
{
    [TestFixture]
    public class GuildTests
    {
        public BattleNetConnection Connection { get; set; }

        [TestFixtureSetUp]
        public void Setup()
        {
            Connection = new BattleNetConnection(Host.Europe, Locale.en_GB) { UseCache = false };
        }

        [Test]
        public void GetGuild()
        {
            var options = new GuildOptions();
            options.Add(GuildField.Achievements);
            

            var guild = Connection.Guilds.GetGuild("arathor", "Royal Horticulturalists", options);
            Assert.IsTrue(guild.Name == "Royal Horticulturalists");
        }

    }
}
